import numpy as np

arr = np.zeros((8, 8))
arr[::2, 1::2] = 1
arr[1::2, ::2] = 1
print(arr)